<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: xoops_version.php Sat Jul 18 12:32:44 CST 2009
 */

if ( !defined("XOOPS_ROOT_PATH") ) exit;

$modversion["version"] = "1.0.0";
$modversion["name"] = _MI_NAME;
$modversion["description"] = "groups for xoops2.3+";
$modversion["author"] = "xiaohui";
$modversion["license"] = "all rights reverved.";
$modversion["dirname"] = "groups";
$modversion["image"] = "images/logo.png";
$modversion["sqlfile"]["mysql"] = "sql/mysql.sql";
$modversion["tables"] = array(
	"groups_attachment",
	"groups_category",
	"groups_footprint",
	"groups_group",
	"groups_member",
	"groups_posts",
	"groups_threads",
	"groups_column",
	"groups_event",
);
$modversion["hasMain"] = true;
// Admin things
$modversion["hasAdmin"] = 1;
$modversion["adminindex"] = "admin/index.php";
$modversion["adminmenu"] = "admin/menu.php";
// update
$modversion["onInstall"]    = "include/action.module.php";
$modversion["onUpdate"]     = "include/action.module.php";
$modversion["onUninstall"]  = "include/action.module.php";

$modversion["sub"] = array();
$modversion["sub"][] = array("name" => "Create Group", 		"url" => "create.php");
$modversion["sub"][] = array("name" => "Groups Category",	"url" => "category.php");

// Templates
$modversion["templates"] = array();

// public templates
$modversion["templates"][] = array(
		"file" 			=> "groups_header.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_index.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_category.html",
		"description" 	=> "" );
		
$modversion["templates"][] = array(
		"file" 			=> "groups_group.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_header.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_index.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_forum.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_member.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_footprint.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_event.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_posting.html",
		"description" 	=> "" );	
$modversion["templates"][] = array(
		"file" 			=> "groups_group_quick_post.html",
		"description" 	=> "" );

$modversion["templates"][] = array(
		"file" 			=> "groups_group_viewtopic.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_group_create.html",
		"description" 	=> "" );
		
$modversion["templates"][] = array(
		"file" 			=> "groups_topic_type.html",
		"description" 	=> "" );
		
$modversion["templates"][] = array(
		"file" 			=> "groups_search_topic.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_search_group.html",
		"description" 	=> "" );
		
// user templates
$modversion["templates"][] = array(
		"file" 			=> "groups_us_index.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_us_menu.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_us_groups_edit.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_us_action.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_us_groups_column.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_us_groups_perm.html",
		"description" 	=> "" );
		
// admin templates
$modversion["templates"][] = array(
		"file" 			=> "groups_cp_index.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_cp_category_list.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_cp_category_form.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_cp_groups.html",
		"description" 	=> "" );
$modversion["templates"][] = array(
		"file" 			=> "groups_cp_topics.html",
		"description" 	=> "" );

// config
$modversion["hasConfig"] = 1;

$modversion["config"] = array();
/** 群组TITLE显示 **/
$modversion["config"][] = array(
    "name"          => "groupstitle",
    "title"         => "_MI_GROUPSTITLE",
    "description"   => "_MI_GROUPSTITLE_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "text",
    "default"       => _MI_NAME
    );
/** 是否允许用户创建群组 **/
$modversion["config"][] = array(
    "name"          => "isusercreategroup",
    "title"         => "_MI_USERCREATEGROUPS",
    "description"   => "_MI_USERCREATEGROUPS_DESC",
    "formtype"      => "yesno",
    "valuetype"     => "int",
    "default"       => 1
    );
/** 允许用户创建群组的数量 **/
$modversion["config"][] = array(
    "name"          => "usercreategroupnum",
    "title"         => "_MI_USERCREATEGROUPSNUM",
    "description"   => "_MI_USERCREATEGROUPSNUM_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 1
    );
/** 主题显示的最大条目数 **/
$modversion["config"][] = array(
    "name"          => "threadsitems",
    "title"         => "_MI_GROUPPAGELIST",
    "description"   => "_MI_GROUPPAGELIST_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 20
    );
/** 主题回复的条目数 **/
$modversion["config"][] = array(
    "name"          => "topicsitems",
    "title"         => "_MI_TOPICSPAGELIST",
    "description"   => "_MI_TOPICSPAGELIST_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 10
    );
/** 是否允许上传附件 **/
$modversion["config"][] = array(
    "name"          => "ispostatt",
    "title"         => "_MI_USERISPOSTATT",
    "description"   => "_MI_USERISPOSTATT_DESC",
    "formtype"      => "yesno",
    "valuetype"     => "int",
    "default"       => 0
    );
/** 可以上传附件的分类ID **/
$modversion["config"][] = array(
    "name"          => "attcatid",
    "title"         => "_MI_ATTCATEGOIES",
    "description"   => "_MI_ATTCATEGOIES_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "text",
    "default"       => ""
    );
/** 每次上传附件的数最 **/
$modversion["config"][] = array(
    "name"          => "attnum",
    "title"         => "_MI_TOPICSPAGEATT",
    "description"   => "_MI_TOPICSPAGEATT_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 5
    );
/** 上传附件的大小 **/
$modversion["config"][] = array(
    "name"          => "attsize", 
    "title"         => "_MI_TOPICSPAGEATTSIZE",
    "description"   => "_MI_TOPICSPAGEATTSIZE_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 1048576
    );
/** 上传附件的类型 **/
$modversion["config"][] = array(
    "name"          => "atttype", 
    "title"         => "_MI_TOPICSPAGEATTTYPE",
    "description"   => "_MI_TOPICSPAGEATTTYPE_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "text",
    "default"       => "jpg|gif|png"
    );
    
/** 成员页面的最大分页数 **/
$modversion["config"][] = array(
    "name"          => "memberslist", 
    "title"         => "_MI_MEMBERSLISTNUM",
    "description"   => "_MI_MEMBERSLISTNUM_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 15
    );
/** 来访页面的最大分页数 **/
$modversion["config"][] = array(
    "name"          => "footprintlist", 
    "title"         => "_MI_FOOTPRINTLISTNUM",
    "description"   => "_MI_FOOTPRINTLISTNUM_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 15
    );
/** 影射显示的最大人数 **/
$modversion["config"][] = array(
    "name"          => "grouplovelist", 
    "title"         => "_MI_GROUPLOVELISTNUM",
    "description"   => "_MI_GROUPLOVELISTNUM_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 15
    );
    
$modversion["config"][] = array(
    "name"          => "groupslist", 
    "title"         => "_MI_GROUPSLISTNUM",
    "description"   => "_MI_GROUPSLISTNUM_DESC",
    "formtype"      => "textbox",
    "valuetype"     => "int",
    "default"       => 10
    );
?>